<?php

class subscriberComponents extends sfComponents
{
    public function executeStatus_id()
    {
        $this->subscriber->getStatusId();
        $arStatus = MyConstants::getStatusList();
        if( empty( $arStatus[$this->subscriber->getStatusId()] ) )
            $this->status = MyConstants::STATUS_NEW;
        else
            $this->status = $arStatus[$this->subscriber->getStatusId()];
    }

}
